<?php
	 include ("session.inc");
	 include("dbconn.inc");
	 include("dbfuc.inc");
	 $uid=$_SESSION["curid"]; 
	 $username=$_SESSION["user"];
	 $search=$_REQUEST['sdWfbbTEfjiopOrungSHyiRD'];
	 $searchid=base64_decode($search);
	 $dbconnection=$_SESSION["dbconnection"];		
	if(session_is_registered("dbconnection") )
	{
	 $mainid=$_REQUEST['mRgeYneGDgporhid'];
	 $mainid=base64_decode($mainid);
	 if(($mainid=="")&&($searchid=="")){
		 $uid=$uid;
	 }else{
		 if($searchid==""){
			 $uid="$mainid";
		 }else{
		 $uid="$searchid";
		 }
	 }
	
//GLOBAL DECLARATION
		$leftid=0; 
		$rightid=0;
		$leftcount=0;
		$rightcount=0;
		$leftlcount=0;$rightlcount==0;$leftllcount=0;$rightllcount=0;
		$leftllcount=0;$rightllcount==0;$leftllrcount=0;$rightllrcount=0;
		$leftrrcount=0;$rightrrcount=0;$leftrrrcount=0;$rightrrrcount=0;

	$data=mysql_query("select  N_LEFT_ID, N_RIGHT_ID ,N_LEFT_COUNT ,N_RIGHT_COUNT from mlm_geneology where N_ID=$uid ");
	while($result=mysql_fetch_array($data)){
		$leftid=$result['N_LEFT_ID'];
		$rightid=$result['N_RIGHT_ID'];
		$leftcount=$result['N_LEFT_COUNT'];
		$rightcount=$result['N_RIGHT_COUNT'];
	}
	if($leftid!=0){
		$data=mysql_query("select  N_LEFT_ID, N_RIGHT_ID ,N_LEFT_COUNT ,N_RIGHT_COUNT from mlm_geneology where N_ID=$leftid ");
		if($result=mysql_fetch_array($data)){
			$leftlid=$result['N_LEFT_ID'];
			$rightlid=$result['N_RIGHT_ID'];
			$leftlcount=$result['N_LEFT_COUNT'];
			$rightlcount=$result['N_RIGHT_COUNT'];
			
		}
		if($leftlid!=0){
			$data=mysql_query("select  N_LEFT_COUNT ,N_RIGHT_COUNT from mlm_geneology where N_ID=$leftlid ");
			if($result=mysql_fetch_array($data)){
				$leftllcount=$result['N_LEFT_COUNT'];
				$rightllcount=$result['N_RIGHT_COUNT'];
				
			}
		}
		if($rightlid!=0){
			$data=mysql_query("select  N_LEFT_COUNT ,N_RIGHT_COUNT from mlm_geneology where N_ID=$rightlid ");
			if($result=mysql_fetch_array($data)){
				$leftllrcount=$result['N_LEFT_COUNT'];
				$rightllrcount=$result['N_RIGHT_COUNT'];
				
			}
		}		
				
	}
	if($rightid!=0){
		$data=mysql_query("select  N_LEFT_ID, N_RIGHT_ID ,N_LEFT_COUNT ,N_RIGHT_COUNT from mlm_geneology where N_ID=$rightid ");
		if($result=mysql_fetch_array($data)){
			$leftrid=$result['N_LEFT_ID'];
			$rightrid=$result['N_RIGHT_ID'];
			$leftrcount=$result['N_LEFT_COUNT'];
			$rightrcount=$result['N_RIGHT_COUNT'];
			
		}
		if($leftrid!=0){
			$data=mysql_query("select  N_LEFT_ID, N_RIGHT_ID ,N_LEFT_COUNT ,N_RIGHT_COUNT from mlm_geneology where N_ID=$leftrid ");
			if($result=mysql_fetch_array($data)){
				$leftrrcount=$result['N_LEFT_COUNT'];
				$rightrrcount=$result['N_RIGHT_COUNT'];
				
			}
		}
		if($rightrid!=0){
			$data=mysql_query("select  N_LEFT_ID, N_RIGHT_ID ,N_LEFT_COUNT ,N_RIGHT_COUNT from mlm_geneology where N_ID=$rightrid ");
			if($result=mysql_fetch_array($data)){
				$leftrrrcount=$result['N_LEFT_COUNT'];
				$rightrrrcount=$result['N_RIGHT_COUNT'];
				
			}
		}
		
	}
?>
<html>
<head>
<title>inner</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
.style1 {	font-size: 9px;
	font-family: Geneva, Arial, Helvetica, sans-serif;
	font-weight: bold;
}
.style7 {font-family: Geneva, Arial, Helvetica, sans-serif}
-->
</style>
<link href="stylesheet.css" rel="stylesheet" type="text/css">
</head>
<body bgcolor="#FFFFFF">
<!-- ImageReady Slices (inner.psd) -->
<table id="Table_01" width="1003" border="0" cellpadding="0" cellspacing="0">
	<tr>
		<td colspan="10"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="1003" height="167">
          <param name="movie" value="images/inner_header.swf">
          <param name="quality" value="high">
          <embed src="images/inner_header.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="1003" height="167"></embed>
	    </object></td>
	</tr>
	<tr>
		<td rowspan="2">
			<img src="images/inner_02.jpg" width="220" height="29" alt=""></td>
		<td rowspan="2">
			<img src="images/inner_03.jpg" width="98" height="29" alt=""></td>
		<td>
			<img src="images/inner_04.jpg" width="44" height="6" alt=""></td>
		<td rowspan="2">
			<img src="images/inner_05.jpg" width="47" height="29" alt=""></td>
		<td rowspan="2">
			<img src="images/inner_06.jpg" width="54" height="29" alt=""></td>
		<td rowspan="2">
			<img src="images/inner_07.jpg" width="102" height="29" alt=""></td>
		<td rowspan="2">
			<img src="images/inner_08.jpg" width="96" height="29" alt=""></td>
		<td rowspan="2">
			<img src="images/inner_09.jpg" width="124" height="29" alt=""></td>
		<td rowspan="2">
			<img src="images/inner_10.jpg" width="106" height="29" alt=""></td>
		<td rowspan="2">
			<img src="images/inner_11.jpg" width="112" height="29" alt=""></td>
	</tr>
	<tr>
		<td>
			<img src="images/inner_12.jpg" width="44" height="23" alt=""></td>
	</tr>
	<tr>
		<td height="19" background="images/inner_15.jpg">&nbsp;</td>
		<td colspan="9" rowspan="2" valign="top" bgcolor="#FFFFFF"><p>&nbsp;</p>
          <table width="98%" align="center" cellpadding="0" cellspacing="0">
            <tr>
              <td>		<table width="100%" border="0" align="center" cellpadding="0" cellspacing="12" bgcolor="#FFFFFF">
    <tr> 
      <td height="0" valign="top" width="0"><form action="geneology_search.php" method="post" name="frm">
	  <table width="710" border="1" align="center" cellpadding="3" cellspacing="1" bordercolor="#CCCCCC" bgcolor="#FFFFFF">
          <tr> 
            <td colspan="2"><span class="style3"><font color="#000000">Member &nbsp;:<?php echo get_username($uid);?></font></span></td>
            <td width="161" > <div align="right" class="style3"><font color="#000000">Search&nbsp;&nbsp;:</font> 
            </div></td>
            <td width="111" > <div align="right" class="style3">
              <input name="kingname" type="text" class="BPO_TEXT" id="kingname" size="15" maxlength="15">
            </div></td>
            <td width="63" ><span class="style3">
              <input type="image" src="images/gene/find.gif" alt="find" width="22" height="20">
              </a></span></td>
            </tr>
        </table>
		</form>
            <TABLE WIDTH=761 BORDER=0 align="center" CELLPADDING=0 CELLSPACING=0>
	<TR>
	    <TD COLSPAN=15 ROWSPAN=4>&nbsp; </TD>
		<TD COLSPAN=9>
			<IMG SRC="images/gene/gen_02.jpg" WIDTH=140 HEIGHT=11 ALT=""></TD>
	    <TD COLSPAN=16 ROWSPAN=5>&nbsp; </TD>
	</TR>
	<TR>
		<TD COLSPAN=9>
			<IMG SRC="images/gene/gen_04.jpg" WIDTH=140 HEIGHT=6 ALT=""></TD>
	</TR>
	<TR>
		<TD ROWSPAN=2>
			<IMG SRC="images/gene/gen_05.jpg" WIDTH=5 HEIGHT=74 ALT=""></TD>
	            <TD height="69" COLSPAN=7 bgcolor="#40C2F6">
				 <div align="center" class="style4"><font face="Verdana, Arial, Helvetica, sans-serif" color="#0000FF" size="1">
				 <?php echo get_username($uid);?> <br><br>
				 Left : <?php echo $leftcount ?>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Right : <?php echo $rightcount ?>
				 
				 </font>				 
				 </div></TD>
		<TD ROWSPAN=2>
			<IMG SRC="images/gene/gen_07.jpg" WIDTH=5 HEIGHT=74 ALT=""></TD>
	</TR>
	<TR>
		<TD COLSPAN=7>
			<IMG SRC="images/gene/gen_08.jpg" WIDTH=130 HEIGHT=5 ALT=""></TD>
	</TR>
	<TR>
		<TD COLSPAN=19>
			<IMG SRC="images/gene/gen_09.jpg" WIDTH=372 HEIGHT=15 ALT=""></TD>
		<TD ROWSPAN=2>
			<IMG SRC="images/gene/gen_10.jpg" WIDTH=1 HEIGHT=16 ALT=""></TD>
		<TD COLSPAN=4>
			<IMG SRC="images/gene/gen_11.jpg" WIDTH=72 HEIGHT=15 ALT=""></TD>
	</TR>
	<TR>
	    <TD COLSPAN=4 ROWSPAN=5>&nbsp; </TD>
		<TD COLSPAN=4 ROWSPAN=2> 
			<IMG SRC="images/gene/gen_13.jpg" WIDTH=67 HEIGHT=15 ALT=""></TD>
		<TD COLSPAN=11>
			<IMG SRC="images/gene/gen_14.jpg" WIDTH=198 HEIGHT=1 ALT=""></TD>
		<TD COLSPAN=20>
			<IMG SRC="images/gene/gen_15.jpg" WIDTH=388 HEIGHT=1 ALT=""></TD>
	</TR>
	<TR>
		<TD ROWSPAN=2>
			<IMG SRC="images/gene/gen_16.jpg" WIDTH=1 HEIGHT=20 ALT=""></TD>
		<TD COLSPAN=22>
			<IMG SRC="images/gene/gen_17.jpg" WIDTH=402 HEIGHT=14 ALT=""></TD>
		<TD COLSPAN=9 ROWSPAN=2>
			<IMG SRC="images/gene/gen_18.jpg" WIDTH=184 HEIGHT=20 ALT=""></TD>
	</TR>
	<TR>
		<TD COLSPAN=4>
			<IMG SRC="images/gene/gen_19.jpg" WIDTH=67 HEIGHT=6 ALT=""></TD>
		<TD COLSPAN=4>
			<IMG SRC="images/gene/gen_20.jpg" WIDTH=72 HEIGHT=6 ALT=""></TD>
	    <TD COLSPAN=14 ROWSPAN=4>&nbsp; </TD>
		<TD COLSPAN=4>
			<IMG SRC="images/gene/gen_22.jpg" WIDTH=67 HEIGHT=6 ALT=""></TD>
	</TR>
	<TR>
		<TD ROWSPAN=2>
			<IMG SRC="images/gene/gen_23.jpg" WIDTH=5 HEIGHT=74 ALT=""></TD>
	            <TD height="69" COLSPAN=7 bgcolor="#40C2F6">
<?php
if($leftid>0){
?>				
				 <div align="center" class="style4">
				 <font face="Verdana, Arial, Helvetica, sans-serif" size="1">
				 <a href="geneology.php?ijknoptgf=<?php echo base64_encode(get_username($leftid)) ?>&mRgeYneGDgporhid=<?php echo base64_encode($leftid) ?>" >
				 <?php echo get_username($leftid);?></a><br><br>
				 Left : <?php echo $leftlcount ?>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Right : <?php echo $rightlcount ?>
				 </font></div>
				
<?php
}else{
?>
				 <div align="center" class="style4">
				 <font face="Verdana, Arial, Helvetica, sans-serif" size="1"><a href="registration_step1.php?mRgeYneGDgporhid=<?php echo base64_encode($uid) ?>&greateposition=<?php echo "L" ?>" >vacant</a></font></div>

<?php
}
?>				 </TD>
		<TD ROWSPAN=2>
			<IMG SRC="images/gene/gen_25.jpg" WIDTH=5 HEIGHT=74 ALT=""></TD>
		<TD ROWSPAN=2>
			<IMG SRC="images/gene/gen_26.jpg" WIDTH=5 HEIGHT=74 ALT=""></TD>
	            <TD height="69" COLSPAN=7 bgcolor="#40C2F6">
<?php
if($rightid>0){
?>
				 <div align="center" class="style4"><font face="Verdana, Arial, Helvetica, sans-serif" size="1"><a href="geneology.php?ijknoptgf=<?php echo base64_encode(get_username($rightid)) ?>&mRgeYneGDgporhid=<?php echo base64_encode($rightid) ?>" >
				 <?php echo get_username($rightid);?></a><br>
				 <br>
				 Left : <?php echo $leftrcount ?>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Right : <?php echo $rightrcount ?>

				 </font></div>
<?php
}else{
?>
				 <div align="center" class="style4">
				 <font face="Verdana, Arial, Helvetica, sans-serif" size="1"><a href="registration_step1.php?mRgeYneGDgporhid=<?php echo base64_encode($uid) ?>&greateposition=<?php echo "R" ?>" >vacant</a></font></div>

<?php
}
?>		
				 </TD>
    <TD COLSPAN=5 ROWSPAN=2><IMG SRC="images/gene/gen_68.jpg" WIDTH=5 HEIGHT=74 ALT=""> </TD>
	</TR>
	<TR>
		<TD COLSPAN=7>
			<IMG SRC="images/gene/gen_29.jpg" WIDTH=130 HEIGHT=5 ALT=""></TD>
		<TD COLSPAN=7>
			<IMG SRC="images/gene/gen_30.jpg" WIDTH=130 HEIGHT=5 ALT=""></TD>
	</TR>
	<TR>
	    <TD COLSPAN=8>&nbsp; </TD>
		<TD ROWSPAN=2>
			<IMG SRC="images/gene/gen_32.jpg" WIDTH=1 HEIGHT=26 ALT=""></TD>
	    <TD COLSPAN=4>&nbsp; </TD>
	    <TD COLSPAN=4>&nbsp; </TD>
		<TD ROWSPAN=2>
			<IMG SRC="images/gene/gen_35.jpg" WIDTH=1 HEIGHT=26 ALT=""></TD>
	    <TD height="25" COLSPAN=8>&nbsp; </TD>
	</TR>
	<TR>
		<TD COLSPAN=2 ROWSPAN=2>
			<IMG SRC="images/gene/gen_37.jpg" WIDTH=58 HEIGHT=15 ALT=""></TD>
		<TD COLSPAN=6>
			<IMG SRC="images/gene/gen_38.jpg" WIDTH=116 HEIGHT=1 ALT=""></TD>
		<TD COLSPAN=5>
			<IMG SRC="images/gene/gen_39.jpg" WIDTH=94 HEIGHT=1 ALT=""></TD>
		<TD COLSPAN=11 ROWSPAN=2>
			<IMG SRC="images/gene/gen_40.jpg" WIDTH=202 HEIGHT=15 ALT=""></TD>
		<TD COLSPAN=6>
			<IMG SRC="images/gene/gen_41.jpg" WIDTH=106 HEIGHT=1 ALT=""></TD>
		<TD COLSPAN=5>
			<IMG SRC="images/gene/gen_42.jpg" WIDTH=110 HEIGHT=1 ALT=""></TD>
		<TD COLSPAN=3 ROWSPAN=2>
			<IMG SRC="images/gene/gen_43.jpg" WIDTH=73 HEIGHT=15 ALT=""></TD>
	</TR>
	<TR>
		<TD ROWSPAN=2>
			<IMG SRC="images/gene/gen_44.jpg" WIDTH=1 HEIGHT=20 ALT=""></TD>
		<TD COLSPAN=11>
			<IMG SRC="images/gene/gen_45.jpg" WIDTH=210 HEIGHT=14 ALT=""></TD>
		<TD ROWSPAN=2>
			<IMG SRC="images/gene/gen_46.jpg" WIDTH=1 HEIGHT=20 ALT=""></TD>
		<TD COLSPAN=10>
			<IMG SRC="images/gene/gen_47.jpg" WIDTH=215 HEIGHT=14 ALT=""></TD>
		<TD ROWSPAN=2>
			<IMG SRC="images/gene/gen_48.jpg" WIDTH=1 HEIGHT=20 ALT=""></TD>
	</TR>
	<TR>
		<TD COLSPAN=2>
			<IMG SRC="images/gene/gen_49.jpg" WIDTH=58 HEIGHT=6 ALT=""></TD>
		<TD COLSPAN=4>
			<IMG SRC="images/gene/gen_50.jpg" WIDTH=84 HEIGHT=6 ALT=""></TD>
	    <TD COLSPAN=3 ROWSPAN=3>&nbsp; </TD>
		<TD COLSPAN=8><img src="images/gene/gen_52.jpg" width=140 height=6 alt=""></TD>
	    <TD COLSPAN=3 ROWSPAN=3>&nbsp; </TD>
		<TD COLSPAN=4>
			<IMG SRC="images/gene/gen_54.jpg" WIDTH=52 HEIGHT=6 ALT=""></TD>
		<TD COLSPAN=4>
			<IMG SRC="images/gene/gen_55.jpg" WIDTH=87 HEIGHT=6 ALT=""></TD>
	    <TD COLSPAN=3 ROWSPAN=3>&nbsp; </TD>
		<TD COLSPAN=3>
			<IMG SRC="images/gene/gen_57.jpg" WIDTH=70 HEIGHT=6 ALT=""></TD>
		<TD COLSPAN=2>
			<IMG SRC="images/gene/gen_58.jpg" WIDTH=69 HEIGHT=6 ALT=""></TD>
		<TD ROWSPAN=3>
			<IMG SRC="images/gene/gen_59.jpg" WIDTH=4 HEIGHT=80 ALT=""></TD>
	</TR>
	<TR>
		<TD ROWSPAN=2>
			<IMG SRC="images/gene/gen_60.jpg" WIDTH=8 HEIGHT=74 ALT=""></TD>
	            <TD height="69" COLSPAN=5 bgcolor="#40C2F6">
<?php
if($leftid>0){
	if($leftlid>0){
?> 
				<div align="center" class="style4"><font face="Verdana, Arial, Helvetica, sans-serif" size="1"><a href="geneology.php?ijknoptgf=<?php echo base64_encode(get_username($leftlid)) ?>&mRgeYneGDgporhid=<?php echo base64_encode($leftlid) ?>" >
				<?php echo get_username($leftlid);?></a><br><br>
				 Left : <?php echo $leftllcount ?>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Right : <?php echo $rightllcount ?>
				</font></div>
<?php
	}else{
?>
				 <div align="center" class="style4">
				 <font face="Verdana, Arial, Helvetica, sans-serif" size="1"><a href="registration_step1.php?mRgeYneGDgporhid=<?php echo base64_encode($leftid) ?>&greateposition=<?php echo "L" ?>" >vacant</a></font></div>

<?php
	}
}
?>	
		</TD>
		<TD ROWSPAN=2>
			<IMG SRC="images/gene/gen_62.jpg" WIDTH=5 HEIGHT=74 ALT=""></TD>
		<TD ROWSPAN=2>
			<IMG SRC="images/gene/gen_63.jpg" WIDTH=5 HEIGHT=74 ALT=""></TD>
	            <TD COLSPAN=6 bgcolor="#40C2F6">
<?php
if($leftid>0){
	if($rightlid>0){
?> 
				 <div align="center" class="style4"><font face="Verdana, Arial, Helvetica, sans-serif" size="1"><a href="geneology.php?ijknoptgf=<?php echo base64_encode(get_username($rightlid)) ?>&mRgeYneGDgporhid=<?php echo base64_encode($rightlid) ?>" >
				 <?php echo get_username($rightlid);?></a><br><br>
				 Left : <?php echo $leftllrcount ?>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Right : <?php echo $rightllrcount ?>
				 </font></div>
<?php
	}else{
?>
				 <div align="center" class="style4">
				 <font face="Verdana, Arial, Helvetica, sans-serif" size="1"><a href="registration_step1.php?mRgeYneGDgporhid=<?php echo base64_encode($leftid) ?>&greateposition=<?php echo "R" ?>" >vacant</a></font></div>

<?php
	}
}
?>	
				 </TD>
		<TD ROWSPAN=2>
			<IMG SRC="images/gene/gen_65.jpg" WIDTH=5 HEIGHT=74 ALT=""></TD>
		<TD ROWSPAN=2>
			<IMG SRC="images/gene/gen_66.jpg" WIDTH=5 HEIGHT=74 ALT=""></TD>
	            <TD COLSPAN=7 bgcolor="#40C2F6">
<?php
if($rightid>0){
	if($leftrid>0){
?> 				
				 <div align="center" class="style4"><font face="Verdana, Arial, Helvetica, sans-serif" size="1"><a href="geneology.php?ijknoptgf=<?php echo base64_encode(get_username($leftrid)) ?>&mRgeYneGDgporhid=<?php echo base64_encode($leftrid) ?>" >
				 <?php echo get_username($leftrid);?></a><br><br>
				 Left : <?php echo $leftrrcount ?>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Right : <?php echo $rightrrcount ?>
				 </font></div>
<?php
	}else{
?>
				 <div align="center" class="style4">
				 <font face="Verdana, Arial, Helvetica, sans-serif" size="1"><a href="registration_step1.php?mRgeYneGDgporhid=<?php echo base64_encode($rightid) ?>&greateposition=<?php echo "L" ?>" >vacant</a></font></div>

<?php
	}
}
?>	
				 </TD>
		<TD ROWSPAN=2>
			<IMG SRC="images/gene/gen_68.jpg" WIDTH=5 HEIGHT=74 ALT=""></TD>
		<TD ROWSPAN=2>
			<IMG SRC="images/gene/gen_69.jpg" WIDTH=5 HEIGHT=74 ALT=""></TD>
		
            <TD COLSPAN=4 bgcolor="#40C2F6"> 
	<?php
if($rightid>0){
	if($rightrid>0){
?> 
			<div align="center" class="style4"><font face="Verdana, Arial, Helvetica, sans-serif" size="1"><a href="geneology.php?ijknoptgf=<?php echo base64_encode(get_username($rightrid)) ?>&mRgeYneGDgporhid=<?php echo base64_encode($rightrid) ?>" >
			<?php echo get_username($rightrid);?></a><br><br>
				 Left : <?php echo $leftrrrcount ?>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Right : <?php echo $rightrrrcount ?>
			</font></div>
<?php
	}else{
?>
				 <div align="center" class="style4">
				 <font face="Verdana, Arial, Helvetica, sans-serif" size="1"><a href="registration_step1.php?mRgeYneGDgporhid=<?php echo base64_encode($rightid) ?>&greateposition=<?php echo "R" ?>" >vacant</a></font></div>

<?php
	}
}
?>	
			</TD>
		<TD ROWSPAN=2>
			<IMG SRC="images/gene/gen_71.jpg" WIDTH=5 HEIGHT=74 ALT=""></TD>
	</TR>
	<TR>
		<TD COLSPAN=5>
			<IMG SRC="images/gene/gen_72.jpg" WIDTH=130 HEIGHT=5 ALT=""></TD>
		<TD COLSPAN=6>
			<IMG SRC="images/gene/gen_73.jpg" WIDTH=130 HEIGHT=5 ALT=""></TD>
		<TD COLSPAN=7>
			<IMG SRC="images/gene/gen_74.jpg" WIDTH=130 HEIGHT=5 ALT=""></TD>
		<TD COLSPAN=4>
			<IMG SRC="images/gene/gen_75.jpg" WIDTH=130 HEIGHT=5 ALT=""></TD>
	</TR>
	<TR>
		<TD COLSPAN=40>
			<IMG SRC="images/gene/gen_76.jpg" WIDTH=761 HEIGHT=10 ALT=""></TD>
	</TR>
	<TR>
		<TD>
			<IMG SRC="images/gene/spacer.gif" WIDTH=8 HEIGHT=1 ALT=""></TD>
		<TD>
			<IMG SRC="images/gene/spacer.gif" WIDTH=50 HEIGHT=1 ALT=""></TD>
		<TD>
			<IMG SRC="images/gene/spacer.gif" WIDTH=1 HEIGHT=1 ALT=""></TD>
		<TD>
			<IMG SRC="images/gene/spacer.gif" WIDTH=48 HEIGHT=1 ALT=""></TD>
		<TD>
			<IMG SRC="images/gene/spacer.gif" WIDTH=5 HEIGHT=1 ALT=""></TD>
		<TD>
			<IMG SRC="images/gene/spacer.gif" WIDTH=26 HEIGHT=1 ALT=""></TD>
		<TD>
			<IMG SRC="images/gene/spacer.gif" WIDTH=5 HEIGHT=1 ALT=""></TD>
		<TD>
			<IMG SRC="images/gene/spacer.gif" WIDTH=31 HEIGHT=1 ALT=""></TD>
		<TD>
			<IMG SRC="images/gene/spacer.gif" WIDTH=1 HEIGHT=1 ALT=""></TD>
		<TD>
			<IMG SRC="images/gene/spacer.gif" WIDTH=26 HEIGHT=1 ALT=""></TD>
		<TD>
			<IMG SRC="images/gene/spacer.gif" WIDTH=5 HEIGHT=1 ALT=""></TD>
		<TD>
			<IMG SRC="images/gene/spacer.gif" WIDTH=36 HEIGHT=1 ALT=""></TD>
		<TD>
			<IMG SRC="images/gene/spacer.gif" WIDTH=5 HEIGHT=1 ALT=""></TD>
		<TD>
			<IMG SRC="images/gene/spacer.gif" WIDTH=22 HEIGHT=1 ALT=""></TD>
		<TD>
			<IMG SRC="images/gene/spacer.gif" WIDTH=36 HEIGHT=1 ALT=""></TD>
		<TD>
			<IMG SRC="images/gene/spacer.gif" WIDTH=5 HEIGHT=1 ALT=""></TD>
		<TD>
			<IMG SRC="images/gene/spacer.gif" WIDTH=26 HEIGHT=1 ALT=""></TD>
		<TD>
			<IMG SRC="images/gene/spacer.gif" WIDTH=5 HEIGHT=1 ALT=""></TD>
		<TD>
			<IMG SRC="images/gene/spacer.gif" WIDTH=31 HEIGHT=1 ALT=""></TD>
		<TD>
			<IMG SRC="images/gene/spacer.gif" WIDTH=1 HEIGHT=1 ALT=""></TD>
		<TD>
			<IMG SRC="images/gene/spacer.gif" WIDTH=46 HEIGHT=1 ALT=""></TD>
		<TD>
			<IMG SRC="images/gene/spacer.gif" WIDTH=5 HEIGHT=1 ALT=""></TD>
		<TD>
			<IMG SRC="images/gene/spacer.gif" WIDTH=16 HEIGHT=1 ALT=""></TD>
		<TD>
			<IMG SRC="images/gene/spacer.gif" WIDTH=5 HEIGHT=1 ALT=""></TD>
		<TD>
			<IMG SRC="images/gene/spacer.gif" WIDTH=26 HEIGHT=1 ALT=""></TD>
		<TD>
			<IMG SRC="images/gene/spacer.gif" WIDTH=1 HEIGHT=1 ALT=""></TD>
		<TD>
			<IMG SRC="images/gene/spacer.gif" WIDTH=38 HEIGHT=1 ALT=""></TD>
		<TD>
			<IMG SRC="images/gene/spacer.gif" WIDTH=5 HEIGHT=1 ALT=""></TD>
		<TD>
			<IMG SRC="images/gene/spacer.gif" WIDTH=39 HEIGHT=1 ALT=""></TD>
		<TD>
			<IMG SRC="images/gene/spacer.gif" WIDTH=5 HEIGHT=1 ALT=""></TD>
		<TD>
			<IMG SRC="images/gene/spacer.gif" WIDTH=18 HEIGHT=1 ALT=""></TD>
		<TD>
			<IMG SRC="images/gene/spacer.gif" WIDTH=1 HEIGHT=1 ALT=""></TD>
		<TD>
			<IMG SRC="images/gene/spacer.gif" WIDTH=39 HEIGHT=1 ALT=""></TD>
		<TD>
			<IMG SRC="images/gene/spacer.gif" WIDTH=5 HEIGHT=1 ALT=""></TD>
		<TD>
			<IMG SRC="images/gene/spacer.gif" WIDTH=23 HEIGHT=1 ALT=""></TD>
		<TD>
			<IMG SRC="images/gene/spacer.gif" WIDTH=42 HEIGHT=1 ALT=""></TD>
		<TD>
			<IMG SRC="images/gene/spacer.gif" WIDTH=1 HEIGHT=1 ALT=""></TD>
		<TD>
			<IMG SRC="images/gene/spacer.gif" WIDTH=64 HEIGHT=1 ALT=""></TD>
		<TD>
			<IMG SRC="images/gene/spacer.gif" WIDTH=5 HEIGHT=1 ALT=""></TD>
		<TD>
			<IMG SRC="images/gene/spacer.gif" WIDTH=4 HEIGHT=1 ALT=""></TD>
	</TR>
</TABLE>
</td>
    </tr>
  </table></td>
            </tr>
          </table>          
          <p>&nbsp;</p>
</td>
	</tr>
	<tr>
		<td valign="top" background="images/inner_15.jpg"><table width="95%" align="center" cellpadding="0" cellspacing="0">
          <tr>
            <td><div class="arrowlistmenu">
                <ul>
                  <li><a href="validation_success.php" class="style1 style7">Control Panal  </a></li>
                  <li><a href="registration_step1.php" class="style1">Registration</a></li>
                  <li><a href="geneology.php" class="style1">Geneology </a></li>
                  <li><a href="amount_transfer.php" class="style1">Amount Transfer  </a></li>
                  <li><a href="amount_transfer_details.php" class="style1">Transaction Details  </a></li>
                  <li><a href="pindetails.php" class="style7">Received Coupon Details  </a></li>
				  <li><a href="user_profile.php" class="style7">View Profile   </a></li>
				  <li><a href="change_password.php" class="style7">Password Change </a></li>
				  <li><a href="logout.php" class="style7">Logout  </a></li>
                </ul>
            </div></td>
          </tr>
        </table>	    <p>&nbsp;</p></td>
	</tr>
	<tr>
		<td colspan="10">
			<img src="images/inner_16.jpg" width="1003" height="23" alt=""></td>
	</tr>
</table>
<!-- End ImageReady Slices -->
</body>
</html>

<?php 
		}
		else
		{
		$errormsg="Session expired";
		header("location:login.php?error=$errormsg");
		}
?>